package com.xrkj.b2c.service.impl.bus;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xrkj.b2c.dao.bus.BusShopMapper;
import com.xrkj.b2c.model.bus.BusShop;
import com.xrkj.b2c.service.bus.BusShopService;

/**
 * 
 * <B>系统名称：</B><BR>
 * <B>模块名称：</B><BR>
 * <B>中文类名：</B>商品服务类<BR>
 * <B>概要说明：</B><BR>
 * 
 * @author 赵子靖
 * @since 2018年07月15日
 */
@Service
public class BusShopServiceImpl implements BusShopService {
    @Autowired
    private BusShopMapper shopDao;

    @Override
    public int deleteShop(String id) {
        return shopDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insertShop(BusShop shop) {
        return shopDao.insertSelective(shop);
    }

    @Override
    public int updateShop(BusShop shop) {
        return shopDao.updateByPrimaryKeySelective(shop);
    }

    @Override
    public BusShop selectByPrimaryKey(String id) {
        return shopDao.selectByPrimaryKey(id);
    }

    @Override
    public Integer findShopTotal(Map<String, Object> paramter) {
        return shopDao.findShopTotal(paramter);
    }

    @Override
    public List<BusShop> findShopList(Map<String, Object> paramter) {
        return shopDao.findShopList(paramter);
    }

    /**
     * 
     * <B>方法名称：</B>商品列表 移动端使用<BR>
     * <B>概要说明：</B><BR>
     * @author perry
     * @since 2017年12月14日   
     * @param paramter
     * @return
     */
    @Override
    public List<BusShop> findShopListForMobile(Map<String, Object> paramter){
        return shopDao.findShopListForMobile(paramter);
    }
    
}
